﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Converter="clr-namespace:Co9320.NamaAlert.Converter;assembly=Core">

    <Converter:NegationConverter x:Key="NegationConverter"/>
    
    <!-- Plugin -->
    <DataTemplate x:Key="PluginNameCellTemplate">
        <StackPanel Orientation="Horizontal" DataContext="{Binding}" >
            <Image Source="{Binding Icon}" Style="{StaticResource SmallIconStyle}" VerticalAlignment="Center"  />
            <TextBlock Text="{Binding Title}" VerticalAlignment="Center" Margin="2" /> 
        </StackPanel>
        
    </DataTemplate>

    <DataTemplate x:Key="PluginEnabledCellTemplate">
        <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Image Source="../../Images/tick_small.png" Style="{StaticResource SmallIconStyle}" VerticalAlignment="Center" 
                   Visibility="{Binding Path=., Converter={StaticResource BooleanToVisibilityConverter}}"  />
        </StackPanel>
    </DataTemplate>

</ResourceDictionary>
